|LF_STANDARD|
|?TREE=&raquo; <a class=tree href="/CMD_RESELLER_SHOW">`LANG_SHOW_RESELLER`</a> &raquo; <a class=tree href="/HTM_ACCOUNT_RESELLER_CREATE">`LANG_CREATE_RES`</a>|
|?HELP_SECTION=`ADMIN_HELPER`/creater.html|
|HTM_ADMIN_TOP|

|?CHECK_NAME=checkName()|
|?CHECK_PASS=|
|?RANDOM_PASS=randomPass()|
|?CHECK_DOMAIN=checkDomain()|

|*if AJAX="1"|
	|?CHECK_NAME=ajax_checkName()|
	|?CHECK_PASS=onChange="ajax_checkPass()"|
	|?RANDOM_PASS=ajax_randomPass('')|
	|?CHECK_DOMAIN=ajax_checkDomain()|

	<script type="text/javascript" src="JS_CREATION_CHECK"></script>
|*endif|

<script language="Javascript">
<!--

|HTM_JAVASCRIPT|

function setText( textfld, checkbx)
{
	if (checkbx.checked)
		textfld.disabled = true;
	if (!checkbx.checked)
		textfld.disabled = false;
}

function setTexts()
{
	with (document.reseller)
	{
		if (sharedip.checked) ip.disabled = true;
		if (uquota.checked) quota.disabled = true;
		if (ubandwidth.checked) bandwidth.disabled = true;
		if (undomains.checked) ndomains.disabled = true;
		if (unsqldbs.checked) nsqldbs.disabled = true;
	}
}

function formOK()
{
	with (document.reseller)
	{
		if (checkName() && checkPass() && checkDomain() && checkEmail())
			return true;
	}
	return false;
}

function showResellerMessage()
{
	var message = window.open("CMD_EDIT_RESELLER_MESSAGE","message","width=740,height=520,scrollbars=no,resizable=yes");
}

// -->
</script>
<!-- inicio bloque -->
<div class="bcp-bloque">
	<div class="bcpb-padding">

		<!-- inicio contenido bloque -->

		<!-- titulo -->
		<div class="bcpbp-titulo">
			<h2>|LANG_CREATE_RES|</h2>
		</div>


		<form name=reseller action="CMD_ACCOUNT_RESELLER" method="post" onSubmit="return formOK()">

			|HTM_PREVENT_AUTOFILL|

			<input type=hidden name=action value=create>


			<div class="bcpbp-form">
				<label for="|LANG_USERNAME|">|LANG_USERNAME|</label>
				<div class="form-datos">
					<input type=text id=username name=username size=32 maxlength=|MAX_USERNAME_LENGTH| onChange="|CHECK_NAME|">
				</div>
			</div>

			<div class="bcpbp-form">
				<label for="|LANG_EMAIL|">|LANG_EMAIL|</label>
				<div class="form-datos">
					<input type=text name=email size=32 onChange="checkEmail()">
				</div>
			</div>

			<div class="bcpbp-form">
				<label for="|LANG_ENTER_PASS|">|LANG_ENTER_PASS|</label>
				<div class="form-datos">
					<input type=password id=passwd name=passwd size=32 |CHECK_PASS|>
					<input type=button value="|LANG_RANDOM|" onClick="|RANDOM_PASS|">
					<div id=passwd_result class=warning></div>
				</div>
			</div>

			<div class="bcpbp-form">
				<label for="|LANG_RE-ENTER_PASS|">|LANG_RE-ENTER_PASS|</label>
				<div class="form-datos">
					<input type=password id=passwd2 name=passwd2 size=32 onChange="checkPass()">
				</div>
			</div>

			<div class="bcpbp-form">
				<label for="|LANG_DOMAIN|">|LANG_DOMAIN|</label>
				<div class="form-datos">
					<input type=text id=domain name=domain size=32 onChange="|CHECK_DOMAIN|">
					<div id=domain_result class=warning></div>
				</div>
			</div>

			<div class="bcpbp-form">
				<label for="|LANG_USE_RES_PACK|">|LANG_USE_RES_PACK|</label>
				<div class="form-datos">
					|PACKAGES|
					|FREEIPS|
					|LANG_FREE_IPS|
				</div>
			</div>

			<div class="bcpbp-form">
				<label for="|LANG_ACCOUNT_IP|">|LANG_ACCOUNT_IP|</label>
				<div class="form-datos">
					<select class=selectclass name=ip>
						<option selected value=shared>|LANG_SHARED_SERVER|</option>
						<option value=sharedreseller>|LANG_SHARED_RES|</option>
						<option value=assign>|LANG_ASSIGNED|</option>
					</select>
				</div>
			</div>

			<div class="bcpbp-form">
				<label for="|LANG_EMAIL_NOTIFY|">|LANG_EMAIL_NOTIFY|</label>
				<div class="form-datos">
					<input type=checkbox name=notify value="yes" checked>
					<a href="javascript:showResellerMessage();">|LANG_EDIT_RES_MESS|</a>
				</div>
			</div>

			<!-- contenedor para boton submit -->
			<div class="bcpbp-form--submit">
				<input type=submit name=customize value="|LANG_CUSTOMIZE|">
				<input type=submit name=add value="|LANG_SUBMIT|">
			</div> <!-- fin contenedor para boton submit -->

		</form>

		<!-- fin contenido bloque -->

	</div> <!-- fin padding -->
</div> <!-- fin bloque -->

|HTM_ADMIN_BOTTOM|
